package com.feng.util.mail;

import java.sql.Blob;

public class MailInfo {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5242466100930785412L;
	/**
	 * 邮件标题
	 */
	private String subject;
	/**
	 * 邮件正文，支持html
	 */
	private String body;
	/**
	 * 邮件服务器地址
	 */
	private String smtphost;
	/**
	 * 发件人邮件地址
	 */
	private String from;
	/**
	 * 发件地址是否需要认证
	 */
	private boolean isAuth = true;

	/**
	 * 发件人邮箱用户名
	 */
	private String username;
	/**
	 * 发件人邮箱密码
	 */
	private String password;
	/**
	 * 收件人地址
	 */
	private String to;
	/**
	 * 邮件附件
	 */
	private Blob fileAttachment;
	/**
	 * 附件名
	 */
	private String attachmentName;

	/**
	 * 抄送人
	 */
	private String copyToAddress;

	public boolean isAuth() {
		return isAuth;
	}

	public void setAuth(boolean isAuth) {
		this.isAuth = isAuth;
	}

	public String getSmtphost() {
		return smtphost;
	}

	public void setSmtphost(String smtphost) {
		this.smtphost = smtphost;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Blob getFileAttachment() {
		return fileAttachment;
	}

	public void setFileAttachment(Blob fileAttachment) {
		this.fileAttachment = fileAttachment;
	}

	public String getAttachmentName() {
		return attachmentName;
	}

	public void setAttachmentName(String attachmentName) {
		this.attachmentName = attachmentName;
	}

	public String getCopyToAddress() {
		return copyToAddress;
	}

	public void setCopyToAddress(String copyToAddress) {
		this.copyToAddress = copyToAddress;
	}
}
